<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                template="./template/HomemasterAd.xhtml"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:define name="content_top">
        Recover Deleted Data
    </ui:define>

    <ui:define name="content">
        <h:form prependId="false">
            <p:dataTable var="fq" value="#{fAQsManagedBean.sudungtruyvan1()}">
                <p:column>
                    <f:facet name="header">Question</f:facet>
                        #{fq.question}
                </p:column>
                <p:column>
                    <f:facet name="header">Answer</f:facet>
                        #{fq.answer}
                </p:column>
                <p:column>
                    <f:facet name="header">Status</f:facet>
                        #{fq.status}
                </p:column>
                <p:column>
                    <f:facet name="header"></f:facet>
                    <h:commandLink action="#{fAQsManagedBean.recoverData(fq)}" onclick="return confirm('Are you sure!')">
                        <h:graphicImage library="admin/images" name="b_edit.png"/>
                    </h:commandLink>
                    &nbsp;
                    <h:commandLink action="#{fAQsManagedBean.xoa(fq)}" onclick="return confirm('Are you sure!')">
                        <h:graphicImage library="admin/images" name="b_drop.png"/>
                    </h:commandLink>
                </p:column>
            </p:dataTable>
        </h:form>
    </ui:define>

</ui:composition>
